FROM java:8
MAINTAINER PF-SYSTEM

# set environment
ENV BASE_DIR="/home/system"

WORKDIR $BASE_DIR

ADD startup.sh bin/startup.sh
ADD jar/pf-system-1.0-SNAPSHOT.jar target/system.jar

# set startup
RUN chmod +x bin/startup.sh

EXPOSE 8501
ENTRYPOINT ["bin/startup.sh"]